PDF Xpress™ supports saving a PDF document to memory.
To save an open PDF document to memory:
- Create a new SaveOptions object.
- Configure the SaveOptions object.
- Invoke the SaveDocumentToHandle method and specify SaveOptions to write the PDF file to a new Global Memory buffer.
![]() |
PDF Xpress saves all documents in PDF version 1.6 if changes have been made to the document; if changes have not been made, then the version is unchanged. |
![]() |
Remote file access (HTTP / FTP) is not supported by PDF Xpress. |
VB Example | ![]() |
---|---|
'This code demonstrates saving a PDF to memory On Error GoTo error Dim pdfxpress1 As New Pdfxpress pdfxpress1.Initialize pdfxpress1.RaiseExceptions = True Dim document As New PdfDocument document.SetParentControl pdfxpress1 Dim so As New saveOptions Dim hGlobal As Long document.SaveDocumentToHandle so, hGlobal . . . GoTo finish error: MsgBox pdfxpress1.PdfError finish: Set document = Nothing pdfxpress1.Terminate Set pdfxpress1= Nothing |